package homework_03;

/**
 * 有一个不多于5位的正整数，求它是几位数，分别打印出每一位数字。
 */
public class Home_11 {
    public static void main(String[] args) {
        int a =1234;
        String x = Integer.toString(a);
        int len = x.length();
        int i = a/1000;
        int j = a%1000/100;
        int k = a%100/10;
        int l = a%10;
        System.out.println("它是"+len+"位数，每位数分别为："+i+" "+j+" "+k+" "+l);

    }
}
